import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_spider_fx/spider/test_spider.dart';
import 'framework/index.dart';
import 'route/index.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  SpiderFramework.init().then((e) => runApp(MyApp()));
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      navigatorObservers: [BotToastNavigatorObserver()],
      title: '简单爬虫框架',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      builder: BotToastInit(),
      home: MyHomePage(),
    );
  }
}
